package com.ynet.middleground.contract.bean;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author daigaole
 * @description 更新档案列表
 * @date 2019-11-13 23:27
 */
@Data
@ApiModel(value = "更新档案列表", description = "更新档案列表")
public class ContractArchiveUpdate implements Serializable {

    private static final long serialVersionUID = 9041438201256515818L;

    /**
     * 档案id
     */
    @ApiModelProperty(value = "档案id", notes = "档案id", required = true, dataType = "Integer")
    @NotNull(message = "档案id不能为空")
    private Integer archiveId;

    /**
     * 文件名
     */
    @ApiModelProperty(value = "文件名", notes = "文件名", required = true, dataType = "String")
    @NotBlank(message = "文件名不能为空")
    private String name;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", notes = "地址", required = true, dataType = "String")
    @NotBlank(message = "地址不能为空")
    private String url;
}
